package com.alibaba.system.impl;


import com.alibaba.basic.service.impl.BaseServiceImpl;
import com.alibaba.system.domain.Dictionarydetail;
import com.alibaba.system.mapper.DictionarydetailMapper;
import com.alibaba.system.service.IDictionarydetailService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class DictionarydetailServiceImpl extends BaseServiceImpl<Dictionarydetail> implements IDictionarydetailService {

    @Resource
    private DictionarydetailMapper dictionarydetailMapper;

    @Override
    public PageInfo<Dictionarydetail> findByTypesId(Long typesId, Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        List<Dictionarydetail> list = dictionarydetailMapper.findByTypesId(typesId);
        return new PageInfo<>(list);
    }
}
